@import "./variables.scss";
* {
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

// *:focus {
//   outline: none;
// }
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: auto;
}
html {
  height: 100%;
  box-sizing: border-box;
  font-size: 14px;
  color: #333; /*此处待添加默认颜色*/
  background: #fff; /*此处待添加默认颜色*/
  font-family: apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei,
    SimSun, sans-serif;
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

#app {
  height: 100%;
}

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
button,
textarea,
p,
blockquote,
th,
td,
strong {
  margin: 0;
  padding: 0;
  font-family: apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei,
    SimSun, sans-serif;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset,
img {
  border: 0;
}

a {
  color: #333; /*此处待添加默认链接颜色*/
  outline: none;
  text-decoration: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

var,
em,
strong,
b,
i {
  font-style: normal;
}

address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var,
optgroup {
  font-style: inherit;
  font-weight: inherit;
}

del,
ins {
  text-decoration: none;
}

li {
  list-style: none;
}

caption,
th {
  text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

q:before,
q:after {
  content: "";
}

abbr,
acronym {
  border: 0;
  font-variant: normal;
}

sup,
sub {
  vertical-align: baseline;
}

legend {
  color: #333;
}

input,
button,
textarea,
select,
optgroup,
option {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
}

input,
button,
textarea,
select {
  *font-size: 100%;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* s 滚动条样式*/
body::-webkit-scrollbar {
  width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 15px;
}
#Main::-webkit-scrollbar,
.el-cascader-menu::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 3px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}
body::-webkit-scrollbar-thumb,
#Main::-webkit-scrollbar-thumb,
.el-cascader-menu::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  /* border-radius: 10px; */
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #ccc;
}
body::-webkit-scrollbar-track,
#Main::-webkit-scrollbar-track,
.el-cascader-menu::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  /* border-radius: 10px; */
  background: #f5f5f5;
}

/* E 滚动条样式*/

/* table字体颜色*/
.suppRowColor {
  color: $menuActiveText;
}

/* 成功或正确图标的字体颜色*/
.successColor {
  color: #67c23a;
}

/* 失败或者错误的字体颜色 */
.failColor {
  color: #f20;
}

/* 成功或正确的背景颜色*/
.successBackColor {
  background-color: #67c23a;
}

/* 失败或者错误的背景颜色 */
.failBackColor {
  background-color: #f20;
}

.orangeColor {
  color: $orange;
}

.orangeColor2 {
  color: #f5a623;
}
.c-fff {
  color: #fff;
}
.c-333 {
  color: #333;
}
.c-999 {
  color: #999;
}
.c-666 {
  color: #666;
}
.c-blue {
  color: #108ee9;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}
.pl-5 {
  padding-left: 5px;
}
.plr-5 {
  padding-left: 5px;
  padding-right: 5px;
}
.pt-5 {
  padding-top: 5px;
}
.pb-5 {
  padding-bottom: 5px;
}
.ptb-5 {
  padding-top: 5px;
  padding-bottom: 5px;
}

.pt-10 {
  padding-top: 10px;
}
.pb-10 {
  padding-bottom: 10px;
}
.ptb-10 {
  padding-top: 10px;
  padding-bottom: 10px;
}
.pl-10 {
  padding-left: 10px;
}
.pr-10 {
  padding-right: 10px;
}
.plr-10 {
  padding-left: 10px;
  padding-right: 10px;
}

.pt-15 {
  padding-top: 15px;
}
.pb-15 {
  padding-bottom: 15px;
}
.ptb-15 {
  padding-top: 15px;
  padding-bottom: 15px;
}
.pl-15 {
  padding-left: 15px;
}
.pr-15 {
  padding-right: 15px;
}
.plr-15 {
  padding-left: 15px;
  padding-right: 15px;
}

.pt-20 {
  padding-top: 20px;
}
.pb-20 {
  padding-bottom: 20px;
}
.ptb-20 {
  padding-top: 20px;
  padding-bottom: 20px;
}
.pl-20 {
  padding-left: 20px;
}
.pr-20 {
  padding-right: 20px;
}
.plr-20 {
  padding-left: 20px;
  padding-right: 20px;
}

.ml-5 {
  margin-left: 5px;
}
.mr-5 {
  margin-right: 5px;
}
.mlr-5 {
  margin-left: 5px;
  margin-right: 5px;
}
.mt-5 {
  margin-top: 5px;
}
.mt-2 {
  margin-top: 2px;
}
.mb-5 {
  margin-bottom: 5px;
}
.mtb-5 {
  margin-top: 5px;
  margin-bottom: 5px;
}

.ml-10 {
  margin-left: 10px;
}
.mr-10 {
  margin-right: 10px;
}
.mlr-10 {
  margin-left: 10px;
  margin-right: 10px;
}
.mt-10 {
  margin-top: 10px;
}
.mb-10 {
  margin-bottom: 10px;
}
.mtb-10 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.ml-15 {
  margin-left: 15px;
}
.mr-15 {
  margin-right: 15px;
}
.mlr-15 {
  margin-left: 15px;
  margin-right: 15px;
}
.mt-15 {
  margin-top: 15px;
}
.mb-15 {
  margin-bottom: 15px;
}
.mtb-15 {
  margin-top: 15px;
  margin-bottom: 15px;
}

.ml-20 {
  margin-left: 20px;
}
.mr-20 {
  margin-right: 20px;
}
.mlr-20 {
  margin-left: 20px;
  margin-right: 20px;
}
.mt-20 {
  margin-top: 20px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mtb-20 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.ml-30 {
  margin-left: 30px;
}
.mr-30 {
  margin-right: 30px;
}
.mlr-30 {
  margin-left: 30px;
  margin-right: 30px;
}
.mt-30 {
  margin-top: 30px;
}
.mb-30 {
  margin-bottom: 30px;
}
.mtb-30 {
  margin-top: 30px;
  margin-bottom: 30px;
}

.ml-40 {
  margin-left: 40px;
}
.mr-40 {
  margin-right: 40px;
}
.mlr-40 {
  margin-left: 40px;
  margin-right: 40px;
}
.mt-40 {
  margin-top: 40px;
}
.mb-40 {
  margin-bottom: 40px;
}
.mtb-40 {
  margin-top: 40px;
  margin-bottom: 40px;
}

/*文字大小*/
.fs-10 {
  font-size: 10px;
}
.fs-12 {
  font-size: 12px;
}
.fs-14 {
  font-size: 14px;
}
.fs-15 {
  font-size: 15px;
}
.fs-16 {
  font-size: 16px;
}
.fs-17 {
  font-size: 17px;
}
.fs-18 {
  font-size: 18px;
}
.fs-20 {
  font-size: 20px;
}

.f-bold {
  font-weight: bold;
}

.w-100 {
  width: 100%;
}
.block {
  display: block;
}

.pointer,
.can-click {
  cursor: pointer;
}

.inlineBlock {
  display: inline-block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

code {
  background: #eef1f6;
  padding: 15px 16px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  font-size: 15px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.warn-content {
  background: rgba(66, 185, 131, 0.1);
  border-radius: 2px;
  padding: 16px;
  padding: 1rem;
  line-height: 1.6rem;
  word-spacing: 0.05rem;

  a {
    color: #42b983;
    font-weight: 600;
  }
}

/* 圆点样式 */
.circular {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.position-a {
  position: absolute;
}

.position-r {
  position: relative;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

/* form表单样式 */
.formBox {
  .box {
    width: 490px;
  }
  .el-form-item__label {
    width: 140px;
  }
  .el-form-item__content {
    width: 340px;
    margin-left: 140px;
  }
  .radio-group .el-radio-group {
    display: grid;
    grid-template-columns: repeat(5, max-content);
  }
  .location-cascader-panel {
    .el-form-item__content {
      width: fit-content;
    }
  }
  .form-item2 {
    .el-form-item__content {
      width: 100%;
      margin-left: 0;
    }
  }
  .box2 {
    width: 630px;
    .el-form-item__label {
      width: 100px;
    }
    .el-form-item__content {
      width: 530px;
      margin-left: 100px;
    }
    .geolocation {
      width: 150px;
      float: left;
      margin-right: 20px;
    }
    .half {
      width: 220px;
    }
  }
  .box3 {
    width: 490px;
    .el-form-item__label {
      width: 140px !important;
    }
    .el-form-item__content {
      width: 340px;
      margin-left: 140px !important;
    }
  }
  .demo-ruleForm {
    padding-top: 15px;
  }
  .formTitle {
    text-align: right;
    margin: 5px 0 10px 0;
    h4 {
      float: left;
      font-weight: normal;
      font-size: 14px;
      color: #3370cb;
    }
    i {
      font-size: 20px;
      color: #ccc;
      &:hover {
        color: #3370cb;
      }
    }
  }
  .formHead {
    padding: 10px 10px;
    background-color: #f5f5f5;
    margin-bottom: 20px;
    position: relative;
    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 3px;
      height: 100%;
      background-color: $menuActiveText;
    }
    h5 {
      font-weight: 700;
      font-size: 14px;
      // padding:5px 0;
    }
  }
  .el-select {
    width: 100%;
  }
  .el-checkbox {
    width: 150px;
    margin: 0 10px 0 0;
  }
  .el-cascader {
    width: 100%;
  }
  .json-schema {
    .el-checkbox {
      width: auto;
      margin: 0;
    }
  }
  .full-content {
    .el-form-item__content {
      width: calc(100% - var(--labelWidth, 0px));
    }
  }
  .form-upload-box .el-upload {
    width: 256px;
    height: 144px;
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    &:hover {
      border-color: #409EFF;
    }
    .form-upload-box-avatar-upload-icon {
      font-size: 72px;
      color: #8c939d;
      width: 256px !important;
      height: 144px !important;
      line-height: 144px !important;
      text-align: center;
    }
    .form-upload-box-avatar {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }
}
.formBox2 {
  .form-tit {
    height: 36px;
    padding: 10px;
    border-left: 4px solid #108ee9;
    background-color: #f5f5f5;
    margin-bottom: 20px;
    .remind {
      font-size: 12px;
      color: #666;
      padding: 0 12px;
    }
  }
  .el-form-item__content {
    width: 300px;
    margin-left: 0;
  }
  .upload-pic-banner-list {
    .el-form-item__content {
      width: 80px;
      margin-left: 0;
    }
  }
  .banner-del {
    font-size: 26px;
    margin-top: 6px;
    color: #959595;
  }
  // .upload-pic{
  //   .el-form-item__content{
  //     width: 200px;
  //   }
  // }
  .avatar-uploader,
  .preview-img {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    // overflow: hidden;
    width: 108px;
    height: 108px;
    background-color: #fff;
    .avatar-uploader-icon {
      font-size: 28px;
      color: #8c939d;
      width: 108px;
      height: 108px;
      line-height: 108px;
      text-align: center;
    }
    .avatar {
      position: absolute;
      top: 50%;
      width: 108px;
      transform: translate(0, -50%);
    }
    .el-icon-remove {
      position: absolute;
      top: -7px;
      right: -7px;
      font-size: 18px;
      color: #ed6161;
      cursor: pointer;
      z-index: 10;
    }
    .el-progress{
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      background-color: #fff;
      z-index: 999;
    }
  }
  .list-picture-upload{
    display: flex;
    .el-upload--picture-card{
      width: 108px;
      height: 108px;
      line-height: 108px;
    }
  }
}
.formBox3 {
  .el-form-item__content {
    width: 270px;
    margin-left: 0;
  }
}
.input-box {
  //text-align: center;
  margin-top: 30px;
  width: 460px;
  .el-select,
  .el-cascader {
    width: 100%;
  }
}
/*  S - TABLE  */
.table {
  font-size: 12px;
  width: 100%;
  box-shadow: none;
  text-align: left;
  color: rgba(0, 0, 0, 0.75);
  border-collapse: separate;
  background: rgb(255, 255, 255);
  margin: 0 0px 1em;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(233, 233, 233);
  border-image: initial;
  border-radius: 0.285714rem;
  border-spacing: 0px;
}
.table thead th {
  cursor: auto;
  text-align: inherit;
  color: rgba(0, 0, 0, 0.87);
  vertical-align: inherit;
  font-weight: 500;
  text-transform: none;
  background: rgb(245, 245, 245);
  padding: 0.75em 0.785714em;
  border-bottom: 1px solid rgba(34, 36, 38, 0.1);
  border-left: none;
}
.table td {
  padding: 0.75em 0.7em;
}
.table tr td {
  border-bottom: 1px solid rgb(233, 233, 233);
}
.table tr:last-child td {
  border: none;
}
.table tr:focus,
.table tr:hover {
  outline: 0;
  background-color: #ecf5ff;
}
.table td i {
  font-size: 20px;
  margin: 0 3px;
}
/*  E - TABLE  */

/* 右侧按钮 */
.btn-right2 {
  position: absolute;
  right: 0;
  top: 0;
  height: 34px;
}

// 表单样式修改
.el-table--striped .el-table__body tr.el-table__row.active,
.el-table .el-table__body tr.active {
  td {
    background-color: #409eff;
    color: #fff;
  }
}
/* 时间段选择器 */
.i-time-range-picker {
  .el-time-spinner__item {
    &.disabled {
      color: #606266;
      cursor: pointer;
    }
    &.active {
      color: #303133;
      font-weight: bold;
    }
  }
}
// 表格里面可以跳转的内容太长时样式
.long-text-link {
  display: inline-block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}
.empty-panel {
  width: 100%;
  min-height: 90px;
  text-align: center;
  color: #999;
  line-height: 90px;
}
.word-break {
  word-break: break-all;
}
.c-link {
  cursor: pointer;
}
.section-header {
  clear: both;
  font-weight: 400;
  margin-top: 16px;
  margin-bottom: 16px;
  border-left: 3px solid #2395f1;
  padding-left: 8px;
  line-height: 30px;
  font-size: 20px;
  color: rgba(39, 56, 72, 0.85);
}
.disabled-mask {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: not-allowed;
  z-index: 2;
}
// 可编辑表格单元格组件的样式
.editable-cell {
  position: relative;
}

.editable-cell-input-wrapper,
.editable-cell-text-wrapper {
  padding-right: 20px;
  // height: 24px;
  line-height: 24px;
}

.editable-cell-text-wrapper {
  padding: 0px 20px 0px 0px;
}

.editable-cell-input-wrapper {
  .el-input__inner {
    height: 24px;
    padding: 0;
  }
  .el-input.error .el-input__inner {
    border-color: #ff4949;
  }
  .error-wrapper {
    font-size: 12px;
    line-height: 12px;
    padding-top: 4px;
    color: #ff4949;
  }
}

.editable-cell-icon,
.editable-cell-icon-check {
  position: absolute;
  right: 0;
  top: 2px;
  width: 20px;
  font-size: 16px !important;
  cursor: pointer;
}

.editable-cell-icon {
  line-height: 18px;
  display: none;
}

.editable-cell-icon-check {
  line-height: 28px;
}

.editable-cell:hover .editable-cell-icon {
  display: inline-block;
}

.editable-cell-icon:hover,
.editable-cell-icon-check:hover {
  color: #108ee9;
}

.editable-add-btn {
  margin-bottom: 8px;
}
// 可以换行表格
.el-table.cell-wrap {
  .cell {
    white-space: normal;
  }
}
.searchbar-box {
  .el-button {
    padding: 9px 12px;
  }
  .el-input__inner {
    height: 34px;
  }
}

.quarter-pick-box {
  position: relative;
  display: inline-block;
  .val-box {
    position: absolute;
    top: 0;
    left: 0 !important;
    padding-left: 32px;
    width: 100%;
    left: 100%;
    z-index: 1;
  }
  .el-date-editor {
    position: relative;
    z-index: 2;
  }
  .el-input__inner {
    width: 100%;
    text-indent: 2000px;
    background-color: transparent;
  }
}
.quarter-pick {
  .el-month-table {
    tr {
      td {
        div {
          position: relative;
          &::after {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
          }
        }
        &.current {
          color: #1890ff;
        }
        .cell {
          opacity: 0;
        }
        &:nth-child(1) {
          div {
            &::after {
              content: "一季度";
            }
          }
        }
        &:nth-child(2) {
          div {
            &::after {
              content: "二季度";
            }
          }
        }
        &:nth-child(3) {
          div {
            &::after {
              content: "三季度";
            }
          }
        }
        &:nth-child(4) {
          div {
            &::after {
              content: "四季度";
            }
          }
        }
      }
    }
    td.disabled {
      display: none;
    }
  }
}

.h-100{
  height: 100%;
}
